<?php

$xml =  $_REQUEST['text'];
$name = $_REQUEST['name'];

$dom = new DomDocument();

//$xml = "<text><name>hello</name><para><seq></seq><word_info><name></name><word><elements></elements></word></word_info></para></text>";

//$dom = new DomDocument();

$dom->loadXML($xml);
$dom->save($name.".xml");




?>